package com.huffman.smart_picture.domain.enums;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author DengLin
 * @title 图片分类枚举
 * @date 2025/3/28
 */
@Getter
public enum PictureCategoryEnum {

    NATURAL_SCENERY("自然风光", "Natural scenery"),
    URBAN_ARCHITECTURE("城市建筑", "urban architecture"),
    PORTRAIT("人物肖像", "Portrait"),
    ANIMAL_WORLD("动物世界", "Animal World"),
    DELICIOUS_CUISINE("美食佳肴", "Delicious cuisine"),
    TRAVEL_AND_EXPLORATION("旅行探险", "Travel and Exploration"),
    TECHNOLOGY_DIGITAL("科技数码", "Technology Digital"),
    ART_DESIGN("艺术设计", "Art Design"),
    SPORTS("体育运动", "sports");
    private String chinese;

    private String english;


    private static final Map<String, String> TRANSLATION_MAP = new HashMap<>();

    static {
        for (PictureCategoryEnum value : values()) {
            TRANSLATION_MAP.put(value.chinese, value.english);
        }
    }


    PictureCategoryEnum(String chinese, String english) {
        this.chinese = chinese;
        this.english = english;
    }

    public static String toEnglish(String chinese) {
        return TRANSLATION_MAP.get(chinese);
    }

}
